<?php

namespace App\Http\Controllers\Admin\Lesson;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Models\lesson\lesson_category as Category;

class CategoryController extends Controller
{
    function index()
    {
        $categories = Category::orderBy('sort_order')->get();
        return $categories;
    }

    function store(Request $request)
    {
       return 'store';
    }

    function destroy($id)
    {
        return 'destroy';
    }
    function create()
    {
        return 'create';
    }
    function show($id) {
        return 'show';
    }

    function update(Request $request, $id)
    {
        return 'update';
    }



}
